package drds.connection_pool;

import drds.connection_pool.proxy.ConnectionProxy;
import drds.connection_pool.proxy.StatementProxy;
import drds.connection_pool.util.FastList;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;

public final class ProxyFactory
{
   private ProxyFactory()
   {

   }

   /**
    * 下面所有的方法: Body is replaced (injected) by JavassistProxyFactory
    */
   public static ConnectionProxy getConnectionProxy(final PoolEntry poolEntry, final Connection connection, final FastList<Statement> openStatements, final ProxyLeakRunnable leakTask, final long now, final boolean isReadOnly, final boolean isAutoCommit)
   {
      throw new UnsupportedOperationException();
   }

   public static Statement getStatementProxy(final ConnectionProxy connectionProxy, final Statement statement)
   {
      throw new UnsupportedOperationException();
   }

   public static PreparedStatement getPreparedStatementProxy(final ConnectionProxy connectionProxy, final PreparedStatement preparedStatement)
   {
      throw new UnsupportedOperationException();
   }

   public static ResultSet getResultSetProxy(final ConnectionProxy connectionProxy, final StatementProxy statementProxy, final ResultSet resultSet)
   {
      throw new UnsupportedOperationException();
   }
}
